import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from '@/App'
import store from '@/store'
import router from '@/router'
import mixin from './main-mixin'
import './core/lazy-use'
import './core/global-component'
import './core/filter'
import './core/directives'
import '@/permission'
import '@/icons'
import moment from 'moment'

// 设置全局自定义过滤器 moment
Vue.filter('moment', function (
    value, formatStr = 'MM-DD HH:mm') {
  return moment(value).format(formatStr)
})


// 引入自定义全局css
import '@/assets/css/global.less'

Vue.config.productionTip = false
const Instance = new Vue({
  router,
  store,
  mixins: [mixin],
  render: h => h(App),
}).$mount('#app')

export default Instance
